package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemIncomeListBinding
import com.stars.empoly.model.DriverProfit
import com.stars.empoly.vmodel.IncomeListVModel
import com.trailer.base.base.BAdapter

class IncomeListAdapter(var vm: IncomeListVModel) : BAdapter<DriverProfit, BaseDataBindingHolder<ItemIncomeListBinding>>(R.layout.item_income_list) {
    override fun convert(holder: BaseDataBindingHolder<ItemIncomeListBinding>, item: DriverProfit) {
        holder.dataBinding?.item = item
        holder.dataBinding?.vm=vm

    }
}
